<?php
include '../common.php';
include '../common/header.php';
?>
<link href="<?=$website['public'];?>/admin/user.css" rel="stylesheet" type="text/css" />
<body>
<div class="top">系统功能<i class="iconfont icon-arrowright"></i>添加管理员</div>
    <div class="m5">
	    <div class="tabs">
	     	<ul class="tab_menu">
		     	<li class="current">添加管理员</li>
	     	</ul>
	     	<div class="tab_box">
				<table class="formtable">
					<form action="../judge/add_if.php" method="post">
						<tr>
							<td>添加管理员</td>
							<td>
								<select name="user" class="select">
									<option value="3">普通管理员</option>
									<?php 
									if ((int)$_SESSION['user'] === 1) {
									?>
									<option value="2">系统管理员</option>
									<?php
									}
									?>
									
								</select>
							</td>
						</tr>	
						<tr>
							<td>用户名</td>
							<td>
								<input type="text" name="name" placeholder="请输入用户名"  class="input">
							</td>
						</tr>
						<tr>
							<td>密码</td>
							<td>
							<input type="password" name="password" placeholder="请输入密码"  class="input left">
							</td>
						</tr>
						<tr>
							<td>确定密码</td>
							<td><input type="password" name="password1" placeholder="请输入确定密码"  class="input left">
							</td>
						</tr>
						<tr>
							<td>联系邮箱</td>
							<td><input type="text" name="email" placeholder="请输入邮箱"  class="input left">
							</td>
						</tr>
						<tr>
							<td>联系手机</td>
							<td><input type="text" name="phone" placeholder="请输入手机号"  class="input left">
							</td>
						</tr>
						<tr>
							<td></td>
							<td>
							<button  class="button button-green" type = "submit">提交</button>
							<a href="user.php" class="button return">返回</a>
							</td>
						</tr>
					</form>
				</table>
	     	</div>
	    </div>
	</div>
</body>
</html>